<%@ include file="/WEB-INF/jsp/include/head.jsp" %><%@ page language="java" pageEncoding="UTF-8"%><%@ taglib uri="http://www.geeksaga.com/pagination-taglib" prefix="bbs" %>
<%@ include file="/WEB-INF/jsp/include/skin_head.jsp" %>
<html>
<head>
	<%@ include file="/WEB-INF/jsp/include/manager_title.jsp" %>
	<%@ include file="/WEB-INF/jsp/include/manager_common_css.jsp" %>
    <style type="text/css" media="screen">
        <jsp:include page="./skin/default/css/admin.css"/>
    </style>
    <%@ include file="/WEB-INF/jsp/include/common_script.jsp" %>
     <script type="text/javascript">
    //<![CDATA[
    <%@ include file="/js/bbs/bbs.js" %>

    function bbsAdmin() {
    	if(bbsId != "") {//게시판 조회 
        	$("#command").attr("value", "VIEW");
        } else //게시판 설정 저장
        	$("#command").attr("value", "MODIFY");
        
    	$("#frmBbsSecuritySet").submit();
    }
  //]]>
    </script>
</head>
<body>
    <%@ include file="/WEB-INF/jsp/include/manager_top.jsp" %>
	<%@ include file="/WEB-INF/jsp/include/adminBbsEachMgntSubMenu.jsp" %>
	<form:form id="frmBbsSecuritySet" method="post" action="bbsSecuritySetUp.do"  modelAttribute="bbsType" >
		<input type="hidden" id="command" name="command" value="VIEW" />
		<input type="hidden" id="bbsId" name="bbsId" value="${param.bbsId}" />
		<input type="hidden" id="type" name="type" value="SecuritySet" />
		${param.bbsId}
	    <div id="pw_bbs_list">
	    	* 접근정책
	        <table width="700" cellspacing="0" cellpadding="2" border="1" align="center" bordercolorlight="#C0D2DF" bordercolordark="#FFFFFF">
	        	<tbody>
	        		<tr>
	        			<td class="titleBlock"><spring:message code="bbsAdmin.acceptIp"/></td>
	        			<td><form:textarea path="acceptIp" rows="5" cols="80"/></td>
	        			<td class="titleBlock"><spring:message code="bbsAdmin.acceptIp"/></td>
	        		</tr>
	        		<tr>
	        			<td class="titleBlock"><spring:message code="bbsAdmin.acceptId"/></td>
	        			<td><form:textarea path="acceptId" rows="5" cols="80"/></td>
	        			<td class="titleBlock"><spring:message code="bbsAdmin.acceptId"/></td>
	        		</tr>
	        		<tr>
        				<td class="titleBlock"><spring:message code="bbsAdmin.badIp"/></td>
	        			<td><form:textarea path="badIp" rows="5" cols="80"/></td>
	        			<td class="titleBlock"><spring:message code="bbsAdmin.badIp"/></td>
	        		</tr>
	        		<tr>
        				<td class="titleBlock"><spring:message code="bbsAdmin.badId"/></td>
	        			<td><form:textarea path="badId" rows="5" cols="80"/></td>
	        			<td class="titleBlock"><spring:message code="bbsAdmin.badId"/></td>
	        		</tr>
	        		<tr>
	        			<td class="titleBlock"><spring:message code="bbsAdmin.searchYn"/></td>
	        			<td>
	        				<form:radiobutton path="searchYn" value="1"/><spring:message code="bbsAdmin.searchY"/>
							<form:radiobutton path="searchYn" value="0"/><spring:message code="bbsAdmin.searchN"/>
	        			</td>
	        		</tr>
	        	</tbody>
	        </table>
	        <br/>
	        * 입력정책
	        <table width="700" cellspacing="0" cellpadding="2" border="1" align="center" bordercolorlight="#C0D2DF" bordercolordark="#FFFFFF">
	        	<tbody>
	        		<tr>
	        			<td class="titleBlock"><spring:message code="bbsAdmin.limitIp"/></td>
	        			<td><form:textarea path="limitIp" rows="5" cols="80"/></td>
	        			<td class="titleBlock"><spring:message code="bbsAdmin.limitIp"/></td>
	        		</tr>
	        		<tr>
	        			<td class="titleBlock"><spring:message code="bbsAdmin.limitId"/></td>
	        			<td><form:textarea path="limitId" rows="5" cols="80"/></td>
	        			<td class="titleBlock"><spring:message code="bbsAdmin.limitId"/></td>
	        		</tr>
	        		<tr>
        				<td class="titleBlock"><spring:message code="bbsAdmin.badNick"/></td>
	        			<td><form:textarea path="badNick" rows="5" cols="80"/></td>
	        			<td class="titleBlock"><spring:message code="bbsAdmin.badNick"/></td>
	        		</tr>
	        		<tr>
        				<td class="titleBlock"><spring:message code="bbsAdmin.badContent"/></td>
	        			<td><form:textarea path="badContent" rows="5" cols="80"/></td>
	        			<td class="titleBlock"><spring:message code="bbsAdmin.badContent"/></td>
	        		</tr>
	        		<tr>
	        			<td class="titleBlock"><spring:message code="bbsAdmin.limitTime"/></td>
	        			<td>
	        				<form:input path="limitFromTime"/>-<form:input path="limitToTime"/>
	        			</td>
	        		</tr>
	        	</tbody>
	        </table>
	        <br/>
	        * 삭제 정책
	        <table width="700" >
				<tr>
           			<td align="center">
           				<input type="button" title="저장" value="저장" name="bbsSecuritySetUp" onclick="bbsAdmin('','');"/>
           			</td>
           		</tr>
			</table>
	    </div>
    </form:form>
	<%@ include file="/WEB-INF/jsp/include/footer.jsp" %>    
</body>
</html>